package com.wzd.imservice.entity;

import io.swagger.annotations.ApiModel;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.data.mongodb.core.mapping.Document;

import java.io.Serializable;

/**
 * @ClassName Mine
 * @Author lofxve
 * @Date 2021/4/16 10:29
 * @Version 1.0
 */
@Data
@Builder
@AllArgsConstructor
@NoArgsConstructor
@ApiModel(value = "mine", description = "im用户信息")
@Document(value = "mine") // 集合（表）名
public class Mine implements Serializable {
    private String id;
    private String name;
    private String type;
    /**
     * 用户头像
     */
    private String avatar;
    /**
     * 用户在线状态  true false
     */
    private String online;
    /**
     * 用户角色  master  manager 其他
     */
    private String role;
}
